home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Collection of Tools & Utilities
/
Collection of Tools and Utilities.iso
/
graphic
/
tpega.zip
/
KC-PAL.DOC
< prev
next >
Wrap
Text File
|
1986-02-01
|
4KB
|
94 lines
Version 01FEB86
The program, KC-PAL, gives the user the ability to changes the
EGA's color palettes through a fancy form screen. But first,
some background information:
What is a palette:
A palette is a holding place in the EGA hardware to save a
color setting. The EGA uses 4 palettes for 64k (EGA memory)
and 16 palettes for 128k+ (EGA memory). This means that EGA
can have up to 4/16 different colors on the screen at a time.
The EGA (any size of memory) can produce sixtyfour different
colors on the Enhance Color Display (ECD). So a palette holds
the value of one of these sixtyfour diffent colors. Now in
text mode (the above was about 640x350 graphic mode) all EGA's
can have 16 palettes (or 16 different colors on the screen).
The palettes are arranged on the screen as:
8 9 10 11 12 13 14 15
0 1 2 3 4 5 6 7
What is a color:
A color is made up of three primary color, Red, Green and
Blue. EGA has four setting (with the ECD) for each primary
color (0,1,2 and 3). Four different Red, Green and Blue pri-
mary colors equals 64 different colors (4 * 4 * 4 = 64). Each
palette can be assign one of these 64 different colors. The
bottow on the screen contains the break down of the current
palette selected (reversed highlighed) as:
R = X, G = X, B = X { X = 0 through 3 }
What is a color number:
A color number is the values of the Red, Green and Blue
(RGB) primary colors put together for form a single number.
For example: R = 2, G = 1, B = 0 =
16 * R + 4 * G + B =
16 * 2 + 4 * 1 + 0 = 38
The default EGA colors are arranged on the screen as:
56 57 58 59 60 61 62 63
0 1 2 3 4 5 6 7
KC-PAL commands:
'space bar': Reset all colors to their default state.
'arrow keys': Select palette to change. The reversed
highlighted cursor will move to the current
palette and the information line will change.
'+' or '-': Adds one or subtract one from the current
palettes 'color number'.
'R' 'G' 'B': Adds one to the specified primary color.
Watch the information line as you do it.
'0'..'9': Allows you to enter a new color number.
For a single digit number, you must enter
a zero first.
'ESC': Return to DOS with palettes set.
If you use KC-PAL alot, KCSETPAL (with or without parameters) will
allow KC-PAL to read the old palette setting, put KCSETPAL in your
autoexec.bat file. If you do not use KCSETPAL, KC-PAL will reset
the palettes to their default state when executed.
If you exit KC-PAL ('ESC') and the palettes are diffent from their
default state then it will display the parameters for the program
KCSETPAL.
Please note that KC-PAL is design for an EGA with more than 64k
of graphic memory. It will still work, but not totally. This
version KC-PAL was design to demonstrate my graphic library in
graphic mode. A new version of KC-PAL that will work of any
EGA with be available by the time you read this. If you find
KC-PAL a problem with 64k of EGA memory send a SASE disk for
the new version.
Kent Cedola
2015 Meadow Lake Court
Norfolk, VA 23518
(804) 857-0613